package com.itheima.dao;

import com.itheima.pojo.Report;

import java.util.List;
import java.util.Map;

public interface AdviceDao {
    //添加操作
    public void add(Report report);

    //report与food
    public void addReportAndFood(Map map);

    //report与travel
    public void addReportAndTravel(Map map);

    //report与medicine
    public void addReportAndMedicine(Map map);

    //查询是否已经添加过了
    public int findByOrderId(int orderId);
    public Report findById(Integer id);

    public List<Integer> findMedicinesByReportId(Integer id);
    public List<Integer> findTravelByReportId(Integer id);
    public List<Integer> findFoodByReportId(Integer id);


    public void deleteMedicineByReportId(Integer reportId);
    public void deleteTravelByReportId(Integer reportId);
    public void deleteFoodByReportId(Integer reportId);
    public void edit(Report report);
}
